<?php

return [
    'alipay' => [
        // 支付宝分配的 APPID
        'app_id' => env('ALI_APP_ID', '2021003129606058'),

        // 支付宝异步通知地址
        'notify_url' => env('APP_URL', 'https://migo.imhaiguiapp.com').'/api/client/pay/alipay/notify',

        // 支付成功后同步通知地址
        'return_url' => env('APP_URL', 'https://migo.imhaiguiapp.com').'/api/client/pay/alipay/notify',

        // 阿里公共密钥，验证签名时使用
//        'ali_public_key' => env('ALI_PUBLIC_KEY', 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoEboqyyeVpk7+lK1vOSI4TkuTs4qMsDOSaLa2XPOjyNxYoeWgaP1KwRv1e1ZOyizininEA2W2/0QY8iZRfQRoVKATo/bUvESKcRtuO+EKnCTw9hHviumYS+5Txo5iIqigYKlakXHR2agYg0o/LD7WsKo391FOD2eXPlfciIRtLoTW8L0jPvoHkJgvuAzWqo+LDvk8Gl28sRS1C/MgX0J3PRPJVbY8S0dn09wEDXPDcUeesm1fCFhKqD0MgEJTXPa0vMp68Un4eU4VcfuwoItmLbrrJtXb0ANJBOjxaG1Vm/rUou6IcN6Ir3d7a5EeWaumFckTj7UBQQMWtwFo3k3DwIDAQAB'),

        // 自己的私钥，签名时使用
        'private_key' => env('ALI_PRIVATE_KEY', 'MIIEpAIBAAKCAQEAgh9kk2xQ2DYWhFu5arPbixelp0UuREh582ukvAPdqrdFO/iNgZSnByYSBmeAK3UBRmmskcqpazcY7aNEINSsC1RCR6JTisQvCffCgCDQpGIquCNaCj8yFURo6stsVP/nKXhXazDkAYXdGTdHF0GkimN0vigvPFuByKxeoH40/0ldV0CJ35WVYUc2M4bg//4yelUiW3FLNBBNLEHAp6KQbBpqGtskjMgL7YiWVZxGQVbL1olmKTBAiPcidagsYvg4XKpmbDXPkFdruIBd+9++PxcIOLrU1hRgb6P91mKlNkRHJG1SmKsNKRnfvxyn7qnMtjLxNcX97LBn26quNl3/7QIDAQABAoIBAHZe3H2H0Vt+iKlLT7cTeqpjjpxFw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k3uREINAX54+5tg0ESuXKs8JBAE4jZyIoiMoN6OErUYjYYVHUsNs4wOc3x+FLs8xxPmVGSs7Ht2RGm44afL2jponu+tt/bJ2C8nRbRnp6UZfG8xh5bVkOcIQiS4oIm+w=='),

        // 使用公钥证书模式，请配置下面两个参数，同时修改 ali_public_key 为以 .crt 结尾的支付宝公钥证书路径，如（./cert/alipayCertPublicKey_RSA2.crt）
        // 应用公钥证书路径
         'app_cert_public_key' => storage_path('aliyun/cert/appCertPublicKey_2021003129606058.crt'),
//         'app_cert_public_key' => './aliyun/cert/appCertPublicKey.crt',

        // 支付宝根证书路径
         'alipay_root_cert' => storage_path('aliyun/cert/alipayRootCert.crt'),
//         'alipay_root_cert' => './aliyun/cert/alipayRootCert.crt',

        'ali_public_key' => storage_path('aliyun/cert/alipayCertPublicKey_RSA2.crt'),

        // optional，默认 warning；日志路径为：sys_get_temp_dir().'/logs/yansongda.pay.log'
        'log' => [
            'file' => storage_path('logs/alipay.log'),
        //  'level' => 'debug'
        //  'type' => 'single', // optional, 可选 daily.
        //  'max_file' => 30,
        ],

        // optional，设置此参数，将进入沙箱模式
        // 'mode' => 'dev',
    ],

    'wechat' => [
        // 公众号 APPID
        'app_id' => env('WECHAT_APP_ID', 'wx0acaf1c91e8a9ffd'),

        // 小程序 APPID
        'miniapp_id' => env('WECHAT_MINIAPP_ID', 'wx0acaf1c91e8a9ffd'),

        // APP 引用的 appid
        'appid' => env('WECHAT_APPID', 'wx0acaf1c91e8a9ffd'),

        // 微信支付分配的微信商户号
        'mch_id' => env('WECHAT_MCH_ID', '1635944281'),

        // 微信支付异步通知地址
        'notify_url' => env('APP_URL', 'https://migo.imhaiguiapp.com').'/api/client/pay/wechat/notify',

        // 微信支付签名秘钥
        'key' => env('WECHAT_KEY', 'HlKO9yWgOJop50OMmXvYtAuVVZclFMh0'),

        // 客户端证书路径，退款、红包等需要用到。请填写绝对路径，linux 请确保权限问题。pem 格式。
//        'cert_client' => storage_path('wechat/cert/apiclient_cert.pem'),
        'cert_client' => '/data/webdata/api/config/wechat/cert/apiclient_cert.pem',

        // 客户端秘钥路径，退款、红包等需要用到。请填写绝对路径，linux 请确保权限问题。pem 格式。
        'cert_key' => '/data/webdata/api/config/wechat/cert/apiclient_key.pem',

        // optional，默认 warning；日志路径为：sys_get_temp_dir().'/logs/yansongda.pay.log'
        'log' => [
            'file' => storage_path('logs/wechat.log'),
        //  'level' => 'debug'
        //  'type' => 'single', // optional, 可选 daily.
        //  'max_file' => 30,
        ],

        // optional
        // 'dev' 时为沙箱模式
        // 'hk' 时为东南亚节点
        // 'mode' => 'dev',
    ],
];
